package com.voja.mrvica2.listener;

import com.voja.mrvica2.Index;

import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

public class MenuItemClickListener implements ListView.OnItemClickListener {
    
    Index activity;
    
    public MenuItemClickListener(Index activity) {
        this.activity = activity;
    }
    
    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        activity.selectMenuItem(position);
    }
}
